¡Ahora vamos a configurar nuestra win condition! Si el reloj llega a 0, entonces el jugador gana.

  • Ve a y arrastra if adentro del evento de intervalo. Asegúrate que tiene un ····.
  • Cambia la variable de prueba a timer.
  • Cambia el valor de prueba a 0.
  • Desde , arrastra Text in Color en el if statement. Debe estar indentado con ········.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)